package xs.src.entity;

import java.util.List;

public class Role {

  private long id;
  private String roleName;
  private String note;
  private List<User> userList;
  public Role() {

  }
  public Role(long id, String roleName, String note) {
    this.id = id;
    this.roleName = roleName;
    this.note = note;
  }

  public Role(long id, String roleName, String note, List<User> userList) {
    this.id = id;
    this.roleName = roleName;
    this.note = note;
    this.userList = userList;
  }

  public List<User> getUserList() {
    return userList;
  }

  public void setUserList(List<User> userList) {
    this.userList = userList;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

  @Override
  public String toString() {
    return "Role{" +
      "id=" + id +
      ", roleName='" + roleName + '\'' +
      ", note='" + note + '\'' +
      ", userList=" + userList +
      '}';
  }
}
